package com.maomao.maomaochong_i.zhuye.ReceiveFactory;

import android.view.LayoutInflater;
import android.widget.LinearLayout;

import com.maomao.maomaochong_i.global.Show;

/**
 * Created by Mrma on 17.5.25.
 */

public class ShowFactory {
    public static XianShi makeShow(Show show){
        LayoutInflater layoutInflater = DingLang.getLayout;
        LinearLayout linearLayout = DingLang.getLiner;
        switch (show){
            case NEWPHONE:
                return new NewPhone(layoutInflater,linearLayout);
            case SENCONEDPHOE:
                return new SencondPhone(layoutInflater,linearLayout);
            case INTERESSTION:
                return new InterestinProduct(layoutInflater,linearLayout);
            case PHONEACCESSORIES:
                return new PhoneAccessories(layoutInflater,linearLayout);
        }
        return null;
    }
}
